package com.giaothong;

import java.util.ArrayList;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.widget.GridView;

import com.giaothong.view.CustomAdapter;

public class TabHocTracNghiemActivity extends Activity{
	
	private CustomAdapter customAdapterOnTracNghiem;
	private GridView gridViewOnTracNghiem;
	private final ArrayList<String> itemsOnTracNghiem = new ArrayList<String>();
	private final int NUMBER_ITEM_ON_TRAC_NGHIEM = 5; 
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		Context context = this;
		setContentView(R.layout.activity_tab_hoc_tracnghiem);
		
		for (int k = 0; k < NUMBER_ITEM_ON_TRAC_NGHIEM; k++){
			itemsOnTracNghiem.add(Integer.toString(k));
		}
		
		gridViewOnTracNghiem = (GridView) findViewById(R.id.home_on_trac_nghiem_gridview);
		customAdapterOnTracNghiem = new CustomAdapter(context, itemsOnTracNghiem);
		gridViewOnTracNghiem.setAdapter(customAdapterOnTracNghiem);
	}

}